import { Component, OnInit } from '@angular/core';
import {AliyunOssOutputUrl} from '../../../config/api';
import {HomeConfigService} from "../../lib/service/home/home-config.service";

@Component({
  selector: 'app-index-footer',
  templateUrl: './index-footer.component.html',
  styleUrls: ['./index-footer.component.scss'],
  providers: [
    HomeConfigService
  ]
})
export class IndexFooterComponent implements OnInit {

  photo_nav_show = false;
  homeConfig;
  aliyunOssOutputUrl = AliyunOssOutputUrl;

  constructor(private homeConfigService: HomeConfigService) { }

  ngOnInit() {
    this.homeConfigService.getHomeConfig().subscribe(
      res => {
        if (res.code = 2000) {
          this.homeConfig = res.data;
        } else {
          alert(res.code + ',' + res.message);
        }
      }
    );
  }

}
